package com.example.library_demo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.library_demo.dto.book.CheckInBookDTO;
import com.example.library_demo.entity.Book;
import com.example.library_demo.entity.Shelf;
import com.example.library_demo.mapper.ShelfMapper;
import com.example.library_demo.service.IBookService;
import com.example.library_demo.service.IShelfService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.library_demo.vo.shelf.ShelfVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Eric
 * @since 2024-11-27
 */
@Service
public class ShelfServiceImpl extends ServiceImpl<ShelfMapper, Shelf> implements IShelfService {

    @Autowired
    private IBookService bookService;
    @Override
    public IPage<ShelfVO> listShelves(Page page) {
        return baseMapper.selectShelves(page);
    }

}
